#ifndef __CONF_VERSION_H__
#define __CONF_VERSION_H__

#include <stdio.h>
#include "ls_series_conf.h"

#define LS_SOFT_VER_MAJ "LS_MAJ"
#define LS_SOFT_VER_MIN "LS_MIN"

#define LS_SOFT_VER_EXT "RevTag"

#define LS_SOFT_VER_TIME "RevTIME"

#define LS_SOFT_GIT_HARD "RevGITLAB"

#define LS_SOFT_VERSION "V" LS_CPU_NAME "." LS_SOFT_VER_MAJ "." LS_SOFT_VER_MIN "." LS_SOFT_VER_EXT "." LS_SOFT_VER_TIME
#define LS_SOFT_VERSION_NEW LS_SOFT_VER_MAJ "." LS_SOFT_VER_EXT "." LS_SOFT_VER_MIN "." LS_SOFT_VER_TIME


#define LS_OS_VER_S "RTOS"

#define LS_HARD_VER_S "RevHardVer"

#define LS_HARD_VERSION "V" LS_CPU_NAME "." LS_HARD_VER_S


static inline char* LS_FORMAT_VERSION_STRING(char* _szBuf)
{
	sprintf(_szBuf, "%s_%s_%s",LS_SERIES_NAME,LS_FLASH_SIZE,LS_SOFT_VER_EXT);
	return _szBuf;
}


static inline const char* LS_FORMAT_VER_TIME_STRING()
{
	return LS_SOFT_VER_TIME;
}


static inline const char* LS_FORMAT_VER_EXT_STRING()
{
	return LS_SOFT_VER_EXT;
}


static inline const char* LS_FORMAT_GIT_HARD_STRING()
{
	return LS_SOFT_GIT_HARD;
}

#endif

